package com.feifan.web.controller.oa;

import com.feifan.framework.util.ShiroUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: feifan
 * @description
 * @author: Alex
 * @create: 2020-09-06 18:06
 **/
@Controller
@RequestMapping("/oa/im")
public class IMController {

    private String prefix = "oa/im";

    @RequiresPermissions("oa:im:view")
    @GetMapping()
    public String im(Model model)
    {
        model.addAttribute("user", ShiroUtils.getSysUser());
        return prefix + "/im";
    }
}
